// src/router/index.js
import { createRouter, createWebHashHistory } from 'vue-router'
import HomeView from './views/HomeView.vue'

const routes = [
    {
        path: '/',
        //重定向
        redirect:'/home'
    },
    {
        path:'/home',
        name:'Home',
        component:HomeView

    },
    {
        path: '/answer',
        name: 'Answer',
        component: ()=>import('./views/AnswerView.vue'),
    }

]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router
